package org.oop1.jicheng;

public class MyPet {
	private String name;
	private int age;
	private String color;
	public MyPet(){
		
	}
	public MyPet(String name,int age,String color){
		this.name = name;
		this.age = age;
		this.color = color;
	}
	public String getName(){
		return name;
	}
	public int getAge(){
		return age;
	}
	public String getColor(){
		return color;
	}
	public String playWithOwner(){
		return "宠物名字："+name+",年龄："+age+"颜色："+color;
	}
}
